package com.vito.framework.system.org.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.vito.framework.base.model.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_org")
@ApiModel(value = "sys_org对象", description = "组织机构表")
public class OrgBean extends Entity<OrgBean> {
	/**
	 * 保存到session必须序列化
	 */
	private static final long serialVersionUID = 3238646679853741725L;


	@TableId(value = "org_id", type = IdType.INPUT)
	private String orgId;

	@TableField("org_name")
    @ApiModelProperty("机构名称")
	private String orgName;

	@TableField("org_addr")
    @ApiModelProperty("机构地址")
	private String orgAddr;

	@TableField("p_org_id")
    @ApiModelProperty("父级机构ID")
	private String porgId;

	@TableField("phone")
    @ApiModelProperty("联系电话")
	private String phone;

	@TableField("org_type")
    @ApiModelProperty("机构类型")
	private String orgType;

	@TableField("status")
    @ApiModelProperty("状态")
	private String status;

	@TableField("city_code")
    @ApiModelProperty("市级代码")
	private String cityCode;

	@TableField("opdate")
    @ApiModelProperty("操作时间")
	private String opdate;

	@TableField("level")
    @ApiModelProperty("级别")
	private String level;

	@TableField("zipcode")
    @ApiModelProperty("邮编")
	private String zipcode;

	@TableField(exist = false)
    @ApiModelProperty("级联城市代码")
	private String cityCodeCascade;

	@TableField(exist = false)
    @ApiModelProperty("机构原编号")
	private String oldOrgId;

	@TableField(exist = false)
    @ApiModelProperty("机构管理员账号")
	private String adminAccount;

	@TableField(exist = false)
    @ApiModelProperty("机构管理员密码")
	private String adminPassword;

	@TableField(exist = false)
	private String addguanli;
}
